﻿//-----------------------------------------------------------------------
// <copyright file="Copyright.cs" author="Michael Herndon">
//     Copyright (c) CompanyName.  All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Amplify.Twitter
{
	#region Using Statements
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;

	using MbUnit.Framework;

	using Describe = MbUnit.Framework.TestsOnAttribute;
	using InContext = MbUnit.Framework.DescriptionAttribute;
	using It = MbUnit.Framework.TestAttribute;
	using Should = MbUnit.Framework.DescriptionAttribute;
	using By = MbUnit.Framework.AuthorAttribute;
	using Tag = MbUnit.Framework.CategoryAttribute;
	#endregion

	[
		Describe(typeof(HelpClient)),
		InContext("should perform its specified behavor."),
		Tag("Functional"),
		Ignore, 
		By("Michael Herndon", "mherndon@opensourceconnections.com", "www.amptools.net")
	]
	public class HelpClientSpec : Spec
	{

		[It, Should(" should run test and not throw an exception. ")]
		public void ShouldInvokeTest()
		{
			HelpClient client = Twitter.CreateHelpClient();
			client.Test().ShouldBe("ok"); 
		}

		[It, Should(" should run retrieve the downtime schedule. ")]
		public void ShouldInvokeDowntimeSchedule()
		{
			HelpClient client = Twitter.CreateHelpClient();
			TwitterError obj =	client.GetScheduledDowntime();
			obj.ShouldNotBeNull();
			if (obj.HasError)
				obj.Error.ShouldNotBeNull();
			else
				obj.Error.ShouldBeNull();
		}
	}
}
